//
//  GameCntrolMenu.m
//  G03
//
//  Created by zhu yi on 9/1/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//
/*
#import "GameCntrolMenu.h"
#import "GridSizeSelect.h"
#import "MainMenu.h"
#import "SimpleAudioEngine.h"

@implementation GameCntrolMenu

- (id) init
{
	self = [super init];
	if (self)
	{
        
		// Add Control Items
		
        //[CCMenuItemFont setFontName:@"font01.fnt"];
        CCMenuItem *MusicOff = [CCMenuItemFont itemFromString:@"Music Off" target:self selector:@selector(OnMusicOff:)];
		CCMenuItem *MusicOn = [CCMenuItemFont itemFromString:@"Music On" target:self selector:@selector(OnMusicOn:)];	
        CCMenuItem *Back = [CCMenuItemFont itemFromString:@"Back" target:self selector:@selector(OnBack:)];
		MusicOff.scale = 1.3;
        MusicOn.scale = 1.3;
        Back.scale = 1.3;
         
         
        
		CCMenu *mn = [CCMenu menuWithItems: MusicOn, MusicOff, Back, nil];
        [mn alignItemsVerticallyWithPadding:50.0f];        
		[self addChild:mn z:1 tag:2];
        
	}
	
	return self;
}


- (void) OnMusicOff:(id) sender
{
    [[SimpleAudioEngine sharedEngine]stopBackgroundMusic];
	//self.visible = false;
    //MusicOn.visble = true;
}

- (void) OnMusicOn:(id) sender
{
	
	[[SimpleAudioEngine sharedEngine] playBackgroundMusic:@"Gentle.mp3"loop:YES];}

- (void) OnBack:(id) sender
{
	
	[[CCDirector sharedDirector] replaceScene: [CCTransitionSlideInL transitionWithDuration:1.2f scene:[MainMenu node]]];
	
}


- (void) dealloc
{
	[super dealloc];
}


@end
*/